package com.yxw.task;

import org.apache.log4j.*; 

public class AppLogger {
	static {   
         PropertyConfigurator.configure( "log4j.properties " );  
    } 

	private static Logger logger;

	public Logger AppLogger(Class<?> clazz) {
		return getLogger(clazz);
	}

	public Logger AppLogger() {
		return getRootLogger();
	}

	public static Logger getLogger(Class<?> clazz) {
		logger = Logger.getLogger(clazz);
		return logger;
	}

	public static Logger getRootLogger() {
		logger = Logger.getRootLogger();
		return logger;
	}
}
